package com.example.entity;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class User {

    private int id;

    @NotBlank
    private String name;

    @Email
    private String email;

}
